package com.example.authority.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Data;

import lombok.experimental.Accessors;


/**
 * @program: authority-hm-0.0.1
 * @ClassName:Address
 * @description: 地址列表 实体类
 * @author:dyy
 * @Version 3.0
 **/

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_address")
@Schema(title = "Address对象", description = "地址列表")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "序列号")
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("序列号")
    private Long id;

    @Schema(title = "姓名")
    @TableField("name")
    @ExcelProperty("姓名")
    private String name;

    @Schema(title = "手机号")
    @TableField("phone")
    @ExcelProperty("手机号")
    private String phone;


    @Schema(title = "详细地址")
    @TableField("content")
    @ExcelProperty("详细地址")
    private String content;

    @Schema(title = "创建账户")
    @TableField("username")
    @ExcelProperty("创建账户")
    private String username;
    @Schema(title = "是否为默认")
    @TableField("is_default")
    @ExcelProperty("是否为默认")
    private int isDefault;


}
